package com.geek.javase.ch06.test3;

import java.time.LocalDate;

/*
 *@author wangpeng
 *2025/10/14 22:32
 *@description TODO
 */
//3.一批食品的生产日期是：2024-5-10，保质期：180天，求过期时间
public class Demo3 {
    public static void main(String[] args) {
        String dateStr = "2024-05-10";
        LocalDate localDate = LocalDate.parse(dateStr);
        LocalDate newDate = localDate.plusDays(180);
        System.out.println(newDate);
    }

}
